<p class="Paragraph"><help:paragraphinfo state="U" number="59" xmlns:help="http://openoffice.org/2000/help"/>If you want to expand the sample data and in order to use it, you will also want to summarize and print the data in totals and subtotals. This can be done in just a few steps:</p>
<ol class="L1">
<li class="">
<p class="P2"><help:paragraphinfo state="U" number="60" xmlns:help="http://openoffice.org/2000/help"/>Place the cursor in the database range.</p>
<p class="P2"><help:paragraphinfo state="U" number="62" xmlns:help="http://openoffice.org/2000/help"/>Specify the options for calculating the subtotals. For example, group by "Date" (a subtotal is calculated for each new date), and calculate subtotals for "Amount" using the function "Sum" (adds the subtotals).</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="63" xmlns:help="http://openoffice.org/2000/help"/>As soon as you press Enter or click OK, the database range will be grouped with subtotals. For every group of rows with an identical date, a subtotal is calculated. The grand total is displayed at the bottom.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="65" xmlns:help="http://openoffice.org/2000/help"/>Notice the controls to the left of the row headers. They enable you to view which records (rows) have been summarized. If you click on a minus sign, only the row with the results is shown. The easiest way to control the display is with the small digits above the group area. If you click on 1, only the grand total is displayed; 2 reveals the subtotals, and 3 shows all elements.</p>